package org.example.memora.service;

import org.example.memora.DTO.CommentSaveDTO;
import org.example.memora.common.result.PageResult;
import org.example.memora.common.result.Result;
import org.example.memora.entity.Comment;

import java.util.List;

public interface CommentService {
    Result<?> save(CommentSaveDTO comment);
    Result<?> findById(String id);
    Result<?> findAll();
    Result<?> deleteById(String id);
    Result<?> findByPostId(String  postId);
    PageResult getCommentsByArticleId(String articleId, int page, int size);

    Result<?> deleteCommentsByArticleId(String articleId);

    Result<?> incrementReplyNumById(String commentId);

    Result<?> incrementReplyNumById(String commentId, String articleId);
}
